package com.ruoyi.kiku.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 平台的cookie信息对象 kiku_token_config
 *
 * @author TT
 * @date 2025-08-24
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class KikuTokenConfig extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** cookie所属平台（字典ID，如1=weibo, 2=xhs, 3=douyin等） */
    @Excel(name = "cookie所属平台", dictType = "cookie_platform_type")
    private Integer platform;

    /** cookie值（建议加密存储） */
    @Excel(name = "cookie值")
    private String cookieValue;

    /** cookie生效时长（单位：天） */
    @Excel(name = "cookie生效时长")
    private Integer effectiveDuration;

}
